<template>
    <div>
        <!-- 选择器 -->
        <el-select v-model="value" class="m-2" placeholder="批量操作" size="large" placement="top-start">
            <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
        </el-select>
        <el-button type="primary" @click="emit('optionsvalue', value)">确定</el-button>
    </div>
</template>

<script setup lang="ts">
import { ref } from 'vue';

const value = ref('')
const options = [
    {
        value: 0,
        label: '设为推荐',
    },
    {
        value: 1,
        label: '取消推荐',
    },
    {
        value: 2,
        label: '删除',
    },
]
const emit = defineEmits(['optionsvalue'])
//批量删除
// const surefn = (val: string) => {

    // console.log(val);
    // if (val) {
    //     user.recommendSubject(multipleSelection.value).then(res => {
    //         if (res.code === 200) {
    //             recommendSubject()
    //         } else {
    //             ElMessage.warning('请选择一条数据')
    //         }
    //     })
    // } else {
    //     ElMessage.warning('请选择一条数据')
    // }

// }
</script>

<style scoped>

</style>